import http from '@/utils/http'
/**
 * 添加购物车
 *
 */
export function addCartList (data) {
  return http({
    method: 'POST',
    url: '/member/cart',
    data
  })
}
/**
 * 获取购物车列表
 */
export function CartlistAPI () {
  return http({
    url: '/member/cart'
  })
}
/**
 * 修改购物车单品
 */
export function Putcartlist (skuId, data) {
  return http({
    method: 'PUT',
    url: `/member/cart/${skuId}`,
    data
  })
}
/**
 * 全反选
 */
export function selecedt (data) {
  return http({
    method: 'put',
    url: '/member/cart/selected',
    data
  })
}
/**
 * 删除商品
 */
export function deletelist (ids) {
  return http({
    method: 'DELETE',
    url: '/member/cart',
    data: ids
  })
}
